/* Copyright 2010 Antonie Jovanoski
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Contact e-mail: Antonie Jovanoski <minimoog77_at_gmail.com>
 */

#ifndef QTWEETGEOCOORD_H
#define QTWEETGEOCOORD_H

#include "qtweetlib_global.h"

/**
 *  Stores latitude/longitude coordinates
 *  Does basic checking if latitude/longitude is in valid degrees
 */
class QTWEETLIBSHARED_EXPORT QTweetGeoCoord
{
public:
    QTweetGeoCoord();
    QTweetGeoCoord(double latitude, double longitude);
    bool isValid() const;
    double latitude() const { return m_latitude; }
    double longitude() const { return m_longitude; }
    void setLatitude(double latitude);
    void setLongitude(double longitude);

private:
    double m_latitude;
    double m_longitude;
    bool m_validLatitude;
    bool m_validLongitude;
};

#endif // QTWEETGEOCOORD_H
